//
//  BlacklistCell.m
//  AILock
//
//  Created by 谭亚明 on 2020/6/30.
//  Copyright © 2020 tym. All rights reserved.
//

#import "BlacklistCell.h"
#import "UIView+ZFFrame.h"
#import "UIImageView+YPImage.h"
@implementation BlacklistCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.headImage.layer.cornerRadius = self.headImage.zf_width/2;
    self.headImage.layer.masksToBounds = YES;
}

-(void)setUserModel:(UserModel *)userModel{
    _userModel = userModel;
    [_headImage yp_setImageUlr:[userModel getEquipmentImage] placeHolder:@"icon_tx2"];
    _moileLab.text = userModel.nickname;
}

-(IBAction)deleUserAction:(id)sender{
    if (self.deleteUserBlock) {
        self.deleteUserBlock();
    }
    
}

+(CGFloat)cellForHeight{
    return 45;
}

+(NSString*)identifier{
    return @"BlacklistCell";
}

@end
